package com.feonix.common.basedao;

import com.feonix.common.annotation.ColumnType;
import com.feonix.common.annotation.GeneratorType;

public class EntityProperty {

	private String columnName;
	private ColumnType columnType;
	private GeneratorType generatorType;
	private Object generator;
	private int length;
	private int decimalLenght;
	private boolean update = true;
	private Class<?> fieldType;
	private String fieldName;
	private boolean pk = false;

	private String defaultValue = "";

	private boolean unique = false;

	private boolean notNull = false;

	public String getColumnName() {
		return this.columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public ColumnType getColumnType() {
		return this.columnType;
	}

	public void setColumnType(ColumnType columnType) {
		this.columnType = columnType;
	}

	public int getLength() {
		return this.length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public boolean isUpdate() {
		return this.update;
	}

	public void setUpdate(boolean update) {
		this.update = update;
	}

	public Class<?> getFieldType() {
		return this.fieldType;
	}

	public void setFieldType(Class<?> fieldType) {
		this.fieldType = fieldType;
	}

	public String getFieldName() {
		return this.fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public GeneratorType getGeneratorType() {
		return this.generatorType;
	}

	public void setGeneratorType(GeneratorType paramGeneratorType) {
		this.generatorType = paramGeneratorType;
	}

	public boolean isPk() {
		return this.pk;
	}

	public void setPk(boolean pk) {
		this.pk = pk;
	}

	public int getDecimalLenght() {
		return this.decimalLenght;
	}

	public void setDecimalLenght(int decimalLenght) {
		this.decimalLenght = decimalLenght;
	}

	public Object getGenerator() {
		return this.generator;
	}

	public void setGenerator(Object generator) {
		this.generator = generator;
	}

	public String getDefaultValue() {
		return this.defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public boolean isUnique() {
		return this.unique;
	}

	public void setUnique(boolean unique) {
		this.unique = unique;
	}

	public boolean isNotNull() {
		return this.notNull;
	}

	public void setNotNull(boolean notNull) {
		this.notNull = notNull;
	}

}
